package rocket.test;

import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
/**
 * 
 * @author justin
 * @version
 *
 */
public class Sandbox {

	// This class can just run stuff when I need to quickly test something triv5ial...
	// something like length of the output of System.currentTimeMillis()
	//index 1 -> 653
	//name
	//type(s)
	//icon
	/*
	 * dont audit
	 * testdatabase controller,
	 * database controller
	 */
	
	public static void main(String[] args) throws IOException {
		System.out.println(System.currentTimeMillis());
		parser(new File("pokemon_raw"));
	}

	@SuppressWarnings("deprecation")
	public static void parser(File f) throws IOException{
		FileInputStream fis = null;
		BufferedInputStream bis = null;
		DataInputStream dis = null;
		
		try{
			fis = new FileInputStream(f);
			bis = new BufferedInputStream(fis);
			dis = new DataInputStream(bis);
			while(dis.available() != 0){
				String[] s = dis.readLine().split(" <");
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		finally{
			if (dis != null)
				dis.close();
		}
	}
	
	public String toString(){
		return "sandbox";
	}
}
